package com.dict.dao;

import java.util.List;
import java.util.Map;

public interface DictionaryDao {
	public Map<String, Object> getDictionaryById(int id);
	
	public List<Map<String, Object>> getDictionaryChild(int pid);
	
	public Map<String, Object> getDictionaryByName(String name);
	
	public Map<String, Object> saveDictionary(Map<String, String> dict);
	
	public Map<String, Object> updateDictionary(Map<String, String> dict);
	
	public List<Map<String, Object>> removeDictionaryTree(int id);
	
	public boolean hasChild(int id);
	
	public int getRows();
	
	public List<Map<String, Object>> getDictionary(int page, int rows);
	
	public boolean isExist(String name);
	public boolean isExist(int id);

	public List<Map<String, Object>> getDictionary(String name, String value);
	
	public List<Map<String, Object>> moveUp(int id, String path, int sort);
	public List<Map<String, Object>> moveDown(int id, String path, int sort);
	
}
